<?php /*a:2:{s:60:"D:\phpstudy_pro\WWW\shop25\app\admin\view\good\cateedit.html";i:1617767364;s:60:"D:\phpstudy_pro\WWW\shop25\app\admin\view\public\header.html";i:1617009105;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>[title]</title>
    <link rel="stylesheet" href="/static/css/pintuer.css">
    <link rel="stylesheet" href="/static/css/admin.css">
    <script src="/static/js/jquery.js"></script>
    <script src="/static/js/pintuer.js"></script>
    <style>
        .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}
        .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}
        .pagination .active{background-color: rgba(35,162,219,0.98);color: #fff;}
        .pagination .disabled{color:#aaa;}
    </style>

</head>
<body>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改分类</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="">
      <div class="form-group">
        <div class="label">
          <label>上级分类：</label>
        </div>
        <div class="field">
          <select name="parent_id" style="padding:5px 15px; border:1px solid #ddd;">
            <option value="0">请选择分类</option>
            <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): if( count($cate)==0 ) : echo "" ;else: foreach($cate as $key=>$v): ?>
            <option value="<?php echo htmlentities($v['cate_id']); ?>" <?php if($v['cate_id']==$one['parent_id']): ?>selected<?php endif; ?>><?php echo htmlentities($v['cate_name']); if(is_array($v['next']) || $v['next'] instanceof \think\Collection || $v['next'] instanceof \think\Paginator): if( count($v['next'])==0 ) : echo "" ;else: foreach($v['next'] as $key=>$vv): ?>
            <option value="<?php echo htmlentities($vv['cate_id']); ?>" <?php if($vv['cate_id']==$one['parent_id']): ?>selected<?php endif; ?>>|------<?php echo htmlentities($vv['cate_name']); ?></option>
            <?php endforeach; endif; else: echo "" ;endif; ?>

            </option>
            <?php endforeach; endif; else: echo "" ;endif; ?>

          </select>
          <div class="tips">不选择上级分类默认为一级分类</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>分类标题：</label>
        </div>
        <div class="field">
          <input type="hidden" name="cate_id" value="<?php echo htmlentities($one['cate_id']); ?>">
          <input type="text" class="input w50" name="cate_name" value="<?php echo htmlentities($one['cate_name']); ?>"/>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>排序：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="sort_order" value="<?php echo htmlentities($one['sort_order']); ?>"  data-validate="number:排序必须为数字" />
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>是否展示：</label>
        </div>
        <div class="field">
          是<input type="radio" name="if_show" value="1" <?php if($one['if_show']==1): ?>checked<?php endif; ?>>
          否<input type="radio" name="if_show" value="0" <?php if($one['if_show']==0): ?>checked<?php endif; ?>>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body></html>
